home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-11-03 | 1.4 KB | 49 lines | [TEXT/GEOL] |
- Item forwarded by A33 to A34
-
- Item 6605201 2-Nov-89 19:01
-
- From: D2086 Efficient Field Svc, C Faith,PRT
-
- To: MACAPP.TECH$ MacApp Technical
- MACAPP.TEST MacApp SQA Team
- MACDTS Macintosh Developer Tech. Supt.
-
- Sub: TCellSelectCommand Bug
-
- One finds the following in TCellSelectCommand.ICellSelectCommand:
-
- BEGIN
- ICommand(0, NIL, itsView, itsView.GetScroller(FALSE));
- fCanUndo := FALSE;
- fCausesChange := FALSE;
- fViewConstrain := FALSE;
-
- fShiftKey := theShiftKey;
- fCmdKey := theCmdKey;
- fGridView := itsView;
- fPrevCell.h := - 1;
-
- fPrevSelection := MakeNewRgn;
- CopyRgn(fGridView.fSelections, fPrevSelection);
- fThisSelection := fGridView.fHLRegion;
- SetEmptyRgn(fThisSelection);
- fDifference := MakeNewRgn;
- END;
-
- One finds the following in TCellSelectCommand.Free:
-
- IF fPrevSelection <> NIL THEN
- DisposeRgn(fPrevSelection);
- IF fDifference <> NIL THEN
- DisposeRgn(fDifference);
-
- If the first call to MakeNewRgn Fails won't the Free method bomb when it
- disposes of fDifference since fDifference was never initially set to NIL.
-
- One more thing, Can't the call to CopyRgn fail also? Should there not be a
- failure handler for ICellSelectCommand that calls Free?
-
- - Curtis
-
-
-